package com.storm.controller


import com.storm.anotation.PermitAll
import com.storm.common.response.JSONResponse
import com.storm.common.response.success
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import javax.servlet.http.HttpServletRequest

@RestController
@RequestMapping("/api/v1/rest/userCenter")
class UserCenterController(val request: HttpServletRequest) {
    /**
     * 获取用户
     */
    @PermitAll("security")
    @PostMapping("/security")
    fun security(): JSONResponse<Void> {
        return success()
    }

    /**
     * 获取用户
     */
    @PostMapping("/security2")
    fun security2(): JSONResponse<Void> {
        return success()
    }

}
